package com.kingyea.mobilepolice.orgjobcategory.dao;

import com.kingyea.mobilepolice.orgjobcategory.bean.OrgDictionaryJobCategory;
import com.kingyea.mobilepolice.util.BasePage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Mr.Lin
 * @version v1.0.0
 * @description OrgDictionaryJobCategoryMapper
 * @date Created in 2018-04-26 15:24:48
 */
public interface OrgDictionaryJobCategoryMapper {

    /**
     * 通过ID删除对象
     */
    int deleteByOrgSerialNo(@Param("orgSerialNo") String orgSerialNo);

    /**
     * 保存对象
     */
    int save(OrgDictionaryJobCategory obj);

    /**
     * 查询列表
     */
    List<OrgDictionaryJobCategory> search(BasePage<?> condition);

    /**
     * @Description: 批量插入部门与警种的依赖
     * @Param: [collect]
     * @return: java.lang.Boolean
     * @Author: cxc
     * @Date: 2018.04.27 09:52
     */
    int batchSave(@Param("orgDictionaryJobCategorys") List<OrgDictionaryJobCategory> orgDictionaryJobCategorys);
}
